Chapter 6\BinaryEntities.xml

<?xml version="1.0" standalone="no"?>

<!DOCTYPE body [

    <!NOTATION GIF SYSTEM "iexplore.exe">
    <!NOTATION JPG SYSTEM "iexplore.exe">

    <!ENTITY gif.xml SYSTEM "xml.gif" NDATA GIF>
    <!ENTITY jpg.xml SYSTEM "xml.jpg" NDATA JPG>

    <!ELEMENT body ANY>

    <!ELEMENT img EMPTY>
        <!ATTLIST img src ENTITY #REQUIRED>
]>

<body>
    <img src="gif.xml"/>
    <img src="jpg.xml"/>
</body>